<template>
  <view class="content">
    <view style="background-color: #165dff; width: 100%; height: 300rpx">
      <image src="../static/images/title-icon.png" mode="widthFix" class="title-bar">
      </image>
      <view class="search-bar-container">
        <uni-search-bar class="uni-mt-10" radius="5" placeholder="搜索关键词" clearButton="auto" cancelButton="none"
          @confirm="search" />
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      searchValue: "123123",
    };
  },
  methods: {
    search(res) {
      uni.showToast({
        title: "搜索：" + res.value,
        icon: "none",
      });
    },
  },
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 400rpx;
  height: 400rpx;
}

.search-bar-container {
  margin-top: 200rpx;
}
</style>
